import { Controller, Get, Put, Query } from '@nestjs/common';
import { StatisticsService } from './statistics.service';

@Controller('statistics')
export class StatisticsController {
  constructor(private readonly statisticsService: StatisticsService) {}
  getStatistics() {
    return this.statisticsService.getStatistics();
  }
  @Get('like')
  getLikeStatistics() {}
  @Put('like')
  putLikeStatistics(@Query('movieId') movieId: number) {}
  @Put('download')
  putDownloadStatistics(@Query('movieId') movieId: number) {
    movieId = Number(movieId);
    this.statisticsService.putDownloadStatistics(movieId);
  }
}
